using JTZY.Model.Business;

namespace JTZY.Model.Business.Dto
{
    /// <summary>
    /// 用户表查询对象
    /// </summary>
    public class CorecmsuserQueryDto : PagerInfo 
    {
        public string UserName { get; set; }
        public string CustomerType { get; set; }

        public long? ParentId { get; set; }
        public int? IsReviewed { get; set; }
    }

    /// <summary>
    /// 用户表输入输出对象
    /// </summary>
    public class CorecmsuserDto
    {
        [Required(ErrorMessage = "用户ID不能为空")]
        public long Id { get; set; }

        public string UserName { get; set; }

        public string PassWord { get; set; }

        public string Mobile { get; set; }

        public int? Sex { get; set; }

        public DateTime? Birthday { get; set; }

        public string AvatarImage { get; set; }

        public string NickName { get; set; }

        [Required(ErrorMessage = "余额不能为空")]
        public decimal Balance { get; set; }

        public int? Point { get; set; }

        public int? Grade { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime? UpdataTime { get; set; }

        [Required(ErrorMessage = "状态[1正常2停用]不能为空")]
        public int Status { get; set; }

        public int? ParentId { get; set; }

        public int? UserWx { get; set; }

        [Required(ErrorMessage = "删除标志 有数据就是删除不能为空")]
        public bool IsDelete { get; set; }

        public long? AgentId { get; set; }

        public int? IsReviewed { get; set; }

        public decimal Debt { get; set; }

        public string Addr { get; set; }

        public string AreaIds { get; set; }

        public string AccountCode { get; set; }

        public string CustomerType { get; set; }

        public string Level { get; set; }

        public int? OutDay { get; set; }

        public decimal CreditAmt { get; set; }

        public string Categories { get; set; }

        public string OutFlag { get; set; }

        public long? SaleManId { get; set; }

        public string ContactPeople { get; set; }

        public bool IsOpenAdmin { get; set; }

        public string ShippingType { get; set; }

        public string AreaNames { get; set; }

        public string source { get; set; }
        public SaleManDto SaleManNav { get; set; }

        [ExcelColumn(Name = "性别[1男2女3未知]")]
        public string SexLabel { get; set; }
        [ExcelColumn(Name = "客户等级")]
        public string LevelLabel { get; set; }
        [ExcelColumn(Name = "销售模式")]
        public string OutFlagLabel { get; set; }

        public decimal? UseAmt { get; set; }
        public string WxQrCode { get; set; }

        public int? StoreId { get; set; }
        public Corecmsagent Agent { get; set; }
    }
}